package com.enums;

//sap需求类型
public enum NeedTypeEnum {

	ZB1("原料类", "ZB1"), ZB2("辅料类", "ZB2"), ZB3("物资类", "ZB3"), ZB4("包材类", "ZB4"), ZB5("水电气类", "ZB5"), ZB6("工程服务类", "ZB6"),
	ZB7("贸易采购类", "ZB7");

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String value = "";

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	NeedTypeEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static String getEnumValue(String name) {
		String valueString = "";
		for (NeedTypeEnum e : NeedTypeEnum.values()) {
			if (e.getName().equals(name)) {
				valueString = e.getValue();
			}
		}
		return valueString;
	}
}
